package com.shengzai.flink.source

import org.apache.flink.streaming.api.scala._

object Demo1ListSource {

  def main(args: Array[String]): Unit = {

    //集合属于
    val env: StreamExecutionEnvironment = StreamExecutionEnvironment.getExecutionEnvironment

    val sourceDS: DataStream[Int] = env.fromCollection(List(1, 3, 45, 5, 6, 7, 2))

    sourceDS.print()

    env.execute()

  }

}
